﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sinbiota.Web.Models
{
    public class ErrorModel
    {
        public Exception Exception { get; set; }
        public bool IsAdmin { get; set; }
        public string ErrorMessage { get; set; }
        public string FriendlyMessage { get; set; }

        public ErrorModel(Exception exception, bool isAdmin, string errorMessage, string friendlyMessage = "We are sorry, an unknown error occurred.")
        {
            Exception = exception;
            IsAdmin = isAdmin;
            ErrorMessage = errorMessage;
            FriendlyMessage = friendlyMessage;
        }
    }
}